package com.lgr.store.dao;

import org.apache.ibatis.annotations.Param;
import com.lgr.store.utils.PageObject;
import com.lgr.store.vo.MaterialInputVo;
import com.lgr.store.vo.MaterialVo;
import com.lgr.store.vo.StorageVo;
import com.lgr.store.vo.SupplierVo;

import java.util.List;
import java.util.Map;

public interface MaterialInputDAO {

    //查询
    List<MaterialInputVo> listAll(@Param("mc") MaterialInputVo materialInput, @Param("pager") PageObject pager);
    //统计记录数
    int getcount(@Param("mc") MaterialInputVo materialInput);
    //新增
    void add(MaterialInputVo materialInput);
    //删除
    void deleteById(Integer materialInputId);
    //修改
    void update(MaterialInputVo materialInput);
    //审核
    void updateAduit(@Param("aduitStatus") int aduitStatus, @Param("materialInputId") int materialInputId);
    //根据id返回信息
    MaterialInputVo findById(Integer materialInputId);
    //根据id返回信息
    MaterialInputVo findByOrderId(String batchNo);
    
    List<SupplierVo> listSupplier();
    List<StorageVo> listStorage();
    MaterialVo findByMaterialCode(String materialCode);
    SupplierVo findBysupplierCode(String supplierCode);
    void fuLiaoInStorage(Map<String, String> params);
}